package cn.gorit.dto.user;

/**
 * @version v1.0
 * @Classname UserDto
 * @Description 用户登录之后，保存在前端的 sessionStorage 的数据
 * @Author CodingGorit
 * @Created on 2021/4/27 22:28
 * @IDLE IntelliJ IDEA
 **/
public class UserDto {
    // 用户 ID, UUID 随机生成的
    private String userId;

    // 用户头像，非空
    private String avatar;

    // 用户昵称，对外展示，优先展示昵称，如果没有昵称则展示真名
    private String nickname;

    // 用于教研的密码
    private String password;

    // 用户个人介绍
    private String profile;

    // 注册日期（统计登录日期）
    private String registerDate;

    // 用户性别 0 男 1 女  非必填
    private Integer gender;

    // 用户邮箱 非必填
    private String email;

    public UserDto() {
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "UserDto{" +
                "userId='" + userId + '\'' +
                ", avatar='" + avatar + '\'' +
                ", nickname='" + nickname + '\'' +
                ", password='" + password + '\'' +
                ", profile='" + profile + '\'' +
                ", registerDate='" + registerDate + '\'' +
                ", gender=" + gender +
                ", email='" + email + '\'' +
                '}';
    }

    public String getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(String registerDate) {
        this.registerDate = registerDate;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

}
